package com.ruoyi.business.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同成本对象 bus_contract_cost
 * 
 * @author ruoyi
 * @date 2021-09-02
 */
public class BusContractCost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成本id */
    private Long costId;

    /** 合同id */
    private Long contractId;

    /** 成本类型 */
    @Excel(name = "成本类型",dictType = "bus_cost_type",sort = 1)
    private String costType;

    /** 成本金额 */
    @Excel(name = "成本金额" ,sort = 2,cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal costSum;

    public void setCostId(Long costId) 
    {
        this.costId = costId;
    }

    public Long getCostId() 
    {
        return costId;
    }
    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setCostType(String costType) 
    {
        this.costType = costType;
    }

    public String getCostType() 
    {
        return costType;
    }
    public void setCostSum(BigDecimal costSum) 
    {
        this.costSum = costSum;
    }

    public BigDecimal getCostSum() 
    {
        return costSum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("costId", getCostId())
            .append("contractId", getContractId())
            .append("costType", getCostType())
            .append("costSum", getCostSum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
